# - * - coding: utf-8 -*-
"""
Created on Thu May 28 18:17:36 2020

@author: zh
"""
import pandas as pd
import os,sys
# 获取停用词的List
def GetListOfStopWords(filepath):
    f_stop = open(filepath,encoding='utf-8')
    try:
        f_stop_text = f_stop.read()
    finally:
        f_stop.close()
    f_stop_seg_list = f_stop_text.split('\n')

    return f_stop_seg_list
stopwords=GetListOfStopWords('D:/jupyterworkspace/新闻分类/data/stopwords/stopwordscom.txt')                    
print(stopwords)
                    